<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .tabber {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 50px;
            border-top: 1px solid #ccc;
            background-color: aliceblue;
            display: flex;
            justify-content: space-around;
            font-size: 20px;
        }

        .btn {
            width: 20%;
            text-align: center;
            line-height: 50px;
        }

        .tabber div.active {
            color: white;
            background-color: red;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="tabber">
            <div :class="{active:currIndex==index}" @click="hanleClick(index)" class="btn" v-for="(item,index) in list">
                <!-- <img src="" alt=""> -->
                <div class="name">{{item.name}}</div>
            </div>

        </div>
    </div>
    <script src="1.vue-2.5.21.js"></script>
    <script src="2.index-高亮.js"></script>
</body>

</html>